﻿using System.Web.Security;
using GC_RF.BusinessEntities;
using GC_RF.Domain.Abstractions.Interfaces.Services;

namespace GC_RF.Domain.Services
{
	public class AuthenticationService : IAuthenticationService
	{
		#region IAuthenticationService Members

		public void SignOut()
		{
			FormsAuthentication.SignOut();
		}

		public void SignIn(SignInUserInfo data)
		{
			if (data == null) return;

			FormsAuthentication.SetAuthCookie(data.Name, data.RememberMe);
		}

		#endregion
	}
}
